<?php
include "../../../server/ToolServer.php";

// 用户判断
class index
{
    public $toolServer;
    public $redisServer;
    protected $now;

    protected $params = []; // request传参
    protected $dumpPath = '/pages/index/index';

    public function __construct()
    {
        $this->now = time();
        $params = $_REQUEST;

        if (empty($params['app_version'])) {
            $params = json_decode(file_get_contents("php://input"), true);
        }
        $this->params = $params;
        $this->toolServer = new ToolServer();
    }


    public function exc()
    {
        $params = $this->params;
        $this->toolServer->success('success',['pass' => 1, 'path' => $this->dumpPath]);

    }
}

$wap = new index();
$wap->exc();
?>
